package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.SensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;

public interface WmSensitiveService extends IService<WmSensitive> {

    /**
     * @param dto:
     * @return ResponseResult
     * @description 查询敏感词列表
     */
    ResponseResult list(SensitiveDto dto);

    /**
     * @param sensitive :
     * @return ResponseResult
     * @description 新增敏感词
     */
    ResponseResult saveSensitives(WmSensitive sensitive);

    /**
     * @param id:
     * @return ResponseResult
     * @description 删除敏感词
     */
    ResponseResult delete(Integer id);

    /**
     * @param sensitive :
     * @return ResponseResult
     * @description 修改敏感词
     */
    ResponseResult updateSensitives(WmSensitive sensitive);
}